Skip to content

Update Bookmark manager for no longer tracking per database #1017

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Nov 25, 2022

Conversation

bigmontz
Copy link
Contributor

Changes in the BookmarkManagerConfig:

  • initialBookmarks type changed from Map<string,Iterable<string>> to Iterable<string>
  • bookmarksSupplier type changed from (db?: string) => Promise<Iterable<string>> to () => Promise<Iterable<string>>
  • bookmarksConsumer type changed from (db: string, bookmarks: Iterable<string>) => Promise<void> to (bookmarks: Iterable<string>) => Promise<void>

Changes in the BookmarkManager:

  • getAllBookmarks and forget were removed
  • updateBookmarks signature changed to updateBookmarks (previousBookmarks: Iterable<string>, newBookmarks: Iterable<string>): Promise<void>
  • getBookmarks signature changed to getBookmarks (): Promise<Iterable<string>>

⚠️ This is a experimental feature.

@bigmontz
Copy link
Contributor Author

Depends on: neo4j-drivers/testkit#534

@bigmontz bigmontz force-pushed the 5.x-update-to-bookmark-manager branch 2 times, most recently from 287bb9b to b5ebe23 Compare November 23, 2022 09:42
Copy link
Member

@robsdedude robsdedude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📖 ❗ 💼

bigmontz and others added 8 commits November 25, 2022 10:12
Changes in the BookmarkManagerConfig:

* `initialBookmarks` type changed from `Map<string,Iterable<string>>` to `Iterable<string>`
* `bookmarksSupplier` type changed from `(db?: string) => Promise<Iterable<string>>` to `() => Promise<Iterable<string>>`
* `bookmarksConsumer` type changed from `(db: string, bookmarks: Iterable<string>) => Promise<void>` to `(bookmarks: Iterable<string>) => Promise<void>`

Changes in the BookmarkManager:

* `getAllBookmarks` and `forget` were removed
* `updateBookmarks` signature changed to `updateBookmarks (previousBookmarks: Iterable<string>, newBookmarks: Iterable<string>): Promise<void>`
* `getBookmarks` signature changed to `getBookmarks (): Promise<Iterable<string>>`

⚠️ This is a experimental feature.
Co-authored-by: Robsdedude <dev@rouvenbauer.de>
Co-authored-by: grant lodge <6323995+thelonelyvulpes@users.noreply.github.com>
@bigmontz bigmontz force-pushed the 5.x-update-to-bookmark-manager branch from f9aa8f2 to 528210f Compare November 25, 2022 09:12
@bigmontz bigmontz merged commit 67ffa9a into neo4j:5.0 Nov 25, 2022
@bigmontz bigmontz deleted the 5.x-update-to-bookmark-manager branch November 25, 2022 11:15
bigmontz added a commit to bigmontz/neo4j-javascript-driver that referenced this pull request Nov 25, 2022
Changes in the BookmarkManagerConfig:

* `initialBookmarks` type changed from `Map<string,Iterable<string>>` to `Iterable<string>`
* `bookmarksSupplier` type changed from `(db?: string) => Promise<Iterable<string>>` to `() => Promise<Iterable<string>>`
* `bookmarksConsumer` type changed from `(db: string, bookmarks: Iterable<string>) => Promise<void>` to `(bookmarks: Iterable<string>) => Promise<void>`

Changes in the BookmarkManager:

* `getAllBookmarks` and `forget` were removed
* `updateBookmarks` signature changed to `updateBookmarks (previousBookmarks: Iterable<string>, newBookmarks: Iterable<string>): Promise<void>`
* `getBookmarks` signature changed to `getBookmarks (): Promise<Iterable<string>>`

⚠️ This is a experimental feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants